<?php

use app\model\Dao\Redis\Base;
use PHPUnit\Framework\TestCase;

class TestRedis extends TestCase 
{

    public function testK()
    {
        $rds = new Base;
        $k = $rds->k("user", "id=123");
        $this->assertEquals("MyAppName:user:id=123", $k);

        $rds = new Base("mytp6");
        $rds->modelName = 'student';
        $this->assertEquals("mytp6:student:class=1:id=15", $rds->k("class=1","id=15"));
    }
}
